/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simplemetrosystem.model.Command.MouseCommand;

import simplemetrosystem.model.Command.*;
import java.awt.geom.Point2D;
import simplemetrosystem.view.MetroFrame;

/**
 *
 * @author Eric Qian
 */
public class PointDisployCommand implements Command {

    /**
     * 
     * @param frame
     */
    public PointDisployCommand(MetroFrame frame) {
        this.frame = frame;
        point = new Point2D.Double(0, 0);
    }

    /**
     * 
     * @param point
     */
    public void setPoint(Point2D point) {
        this.point = point;
    }

    /**
     * 
     */
    public void execute() {
        frame.getFloorBar().setPoint(point);
    }

    /**
     * 
     */
    public void undo() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    private MetroFrame frame;
    private Point2D point;
}
